package zjc.数组;

public class 静态初始化定义数组 {
    public static void main(String[] args) {
        //数据类型 数据名 = new 数据类型[]{元素1,元素2,元素3}
        /*double[] fenshu = new double[]{50.5,53.6,78.7};
        int[] age = new int[]{18,17,20};
        String[] name = new String[]{"蔡胜超","徐佳明","周俊"};*/
        //简化
        double[] fenshu = {50.5,53.6,78.7};
        int[] age = {18,17,20};
        String[] name = {"蔡胜超","徐佳明","周俊"};
        //数组储存的是地址
        //数组就是一个引用数据
        System.out.println(age);
    }
}
